/**
 * 
 */
package us.gaaoc.framework.webapp.phaselisteners;

import javax.faces.context.FacesContext;
import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;
import javax.faces.event.PhaseListener;

/**
 * @author robinsom
 * 
 */
public class ClientPhaseListener implements PhaseListener {

	/** Generated Serial Version UID */
	private static final long serialVersionUID = 6901798450647971264L;

	/**
	 * Default Constructor.
	 */
	public ClientPhaseListener() {
	}

	public void beforePhase(PhaseEvent arg0) {
		FacesContext facesContext = FacesContext.getCurrentInstance();

		//if (facesContext != null)
			//System.out.println(facesContext.getViewRoot().getViewId());
	}

	public void afterPhase(PhaseEvent arg0) {
		FacesContext facesContext = FacesContext.getCurrentInstance();

		//if (facesContext != null)
			//System.out.println(facesContext.getViewRoot().getViewId());
	}

	public PhaseId getPhaseId() {
		return PhaseId.RENDER_RESPONSE;
	}
}
